<?php if (!defined('THINK_PATH')) exit();?><div class="yuList">
    <table class="table table-bordered">
        <thead>
            <tr>
                <td width="8%">编号</td>
                <td width="12%">标题</td>
                <td width="16%">焦点图</td>
                <td width="6%">类型</td>
                <td width="18%">参数</td>
                <td width="9%">发布时间</td>
                <td width="6%">排序</td>
                <td width="6%">状态</td>
                <td width="8%">操作</td>
            </tr>
        </thead>
        <tbody>
        <?php $carousel_type=array('1'=>'拍卖','2'=>'活动','3'=>'图片'); $carousel_status=array('1'=>'已上线','2'=>'已下线'); ?>
        <?php if(is_array($list)): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($k % 2 );++$k;?><tr class="listBg">
                <td><?php echo ($list["c_id"]); ?></td>
                <td><?php echo ($list["title"]); ?></td>
                <td><img src="<?php echo ($list["focus_picture"]); ?>@182w_82h"  /></td>
                <td><?php echo ($carousel_type[$list[type]]); ?></td>
            <?php if($list["type"] == 1): ?><td><?php echo ((isset($list["name"]) && ($list["name"] !== ""))?($list["name"]):'/'); ?></td>
                <?php elseif($list["type"] == 2): ?>
                <td><?php echo ($list["param_url"]); ?></td>
                <?php else: ?>
                <td>/</td><?php endif; ?>
            <td><?php echo ($list["publish_time"]); ?></td>
            <td><?php echo ($list["sort"]); ?></td>
            <td><?php echo ($carousel_status[$list[status]]); ?></td>
            <?php if($list["status"] == 1): ?><td>
                <a href="/Carousel/editCarousel/platform/<?php echo ($platform); ?>/p/<?php echo ($p); ?>/cid/<?php echo ($list["c_id"]); ?>">编辑</a>
                <a href='#' onclick="return confirm_popup('<?php echo ($list["c_id"]); ?>','<?php echo ($list["sort"]); ?>',2,'','<?php echo ($list["platform"]); ?>')" >下线</a>
            </td>
            <?php else: ?>
            <td>
                <a href="/Carousel/editCarousel/platform/<?php echo ($platform); ?>/p/<?php echo ($p); ?>/cid/<?php echo ($list["c_id"]); ?>">编辑</a>
                <a href='#' onclick="return confirm_popup('<?php echo ($list["c_id"]); ?>','<?php echo ($list["sort"]); ?>',1,'','<?php echo ($list["platform"]); ?>')">上线</a>
            </td><?php endif; ?>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
    <div class="pageFaye"><div class="pager"><?php echo ($page); ?></div><div class="clear"></div></div>
</div>